Anillo 3 - OriginalAn interactive fiction by Mel Hython (2009) - the Inform 7 source text | ||||||||||
Home page Contents Previous Next Complete text | Part 5 - La aventura
Chapter 1 - El inicio NoLugar is a room. [-------------------------------------------------- Regla activada al iniciar el juego --------------------------------------------------] [ Un poco de decoracion ] To say hambre y sed: if hambre del jugador is greater than 130: say "H"; otherwise: say "-"; if sed del jugador is greater than 160: say "S"; otherwise: say "-". To decide which number is nneg of (num - a number): if num is greater than 0: decide on num; otherwise: decide on 0. [ Localidades 'especiales' ] To say nombre localidad: if map region of location is nothing: say location; otherwise if location is Pantano1: say "Manantial"; otherwise if location is Pantano26: say "Huerta"; otherwise if location is Pantano23: say "Hiedra y montículo"; otherwise if location is Pantano28: say "Entrada a cuevas"; otherwise if location is Lava: say "Río de lava"; otherwise if location is Pantano12: say "Arenas movedizas"; otherwise if location is Pantano17: say "Viejas ruinas"; otherwise if location is PuertaCastillo: say "Camino de la fortaleza"; otherwise: say map region of location. [No me gusta nada el status estandar, veamos si hago algo mejor] [De la mano de Eliuk] To close the statusline: (- if (gg_statuswin) { glk_window_set_arrangement(glk_window_get_parent(gg_statuswin),winmethod_Fixed+winmethod_Above,0,0); } -) To open the statusline: (- if (gg_statuswin) { glk_window_set_arrangement(glk_window_get_parent(gg_statuswin),winmethod_Fixed+winmethod_Above,1,0); } -) When play begins: enable veneer acceleration; close the statusline; poner cuadro de inicio; wait for any key; now the player is in NoLugar; now the player is nuhur; clear the screen; poner cuadro de creditos; wait for any key; clear the screen; say line break; say line break; assign the sound of inicio to channel 0 with 100% volume; [and 1 repetitions]; assign the sound of cuevas to channel 1 with 40% volume, endless loop; assign the sound of pantano to channel 2 with 40% volume, endless loop; assign the sound of castillo to channel 3 with 85% volume, endless loop; assign the sound of final to channel 4 with 100% volume, endless loop; assign the sound of efectos to channel 5 with 70% volume, endless loop; start musical introduction; poner cuadro de aviso; wait for any key; clear the screen; say line break; say line break; contar inicio de la historia; say line break; say line break; open the statusline; change left hand status line to "[nombre localidad]"; change right hand status line to "[el portador]: [hambre y sed]"; now Efectos-Sonando is true; dplay sound of efectos; activar sonidos ambientales. [change the volume of the sound of inicio to 40%.] [ QQQ: Para las pruebas de la parte final move player to Lava; move pergamino azulado to player; move cuenta to player; move dedal to player; now cuenta is lit.] [FRASE: Cuadro de inicio con el nombre del relato y fecha] To poner cuadro de inicio: display the boxed quotation " Anillo III - Diseño original Un relato de Mel Hython. Año 2009, sobre diseño de 1989. "; show the current quotation. To poner cuadro de aviso: display the boxed quotation " Este relato interactivo cuenta con efectos sonoros de ambientación y con música. Para activar o desactivar la música teclea simplemente 'MUSICA'. Para activar o desactivar los efectos sonoros teclea simplemente 'EFECTOS'. "; show the current quotation. To poner cuadro de creditos: display the boxed quotation " Portada de: Urbatain. Sonidos del pantano de: Xpktro. Librería de sonidos: Eliuk Blau. Musica de: coax, the ice garden "; show the current quotation. [COMANDO: Introducción que relata] To contar inicio de la historia: relatar fragmento en Table of Historia Inicial, limpiando pantalla. [HISTORIA: El fragmento inicial] Table of Historia Inicial
|